package cn.slipi.admin.service.dto.in.producer;

import lombok.Data;

/**
 * 熔断降级配置（{"commandKey":"","errorThresholdPercentage":"50","groupKey":"","requestVolumeThreshold":"20","sleepWindowInMilliseconds":"5000","timeoutInMilliseconds":"1000"}）
 */
@Data
public class HystrixParam {
    /**
     * groupKey
     */
    private String groupKey;
    /**
     * commandKey
     */
    private String commandKey;
    /**
     * 请求超时时间
     */
    private Integer timeoutInMilliseconds;
    /**
     * 短路最小请求数
     */
    private Integer requestVolumeThreshold;
    /**
     * 失败百分比阈值
     */
    private Integer errorThresholdPercentage;
    /**
     * 休眠重试间隔
     */
    private Integer sleepWindowInMilliseconds;
}
